package com.tanxi521.tnweb.utils;

public class PlayerException extends RuntimeException{

    public PlayerException(PlayerExceptionEnum playerExceptionEnum) {
        super(playerExceptionEnum.getMessage());
        this.playerExceptionEnum = playerExceptionEnum;
    }

    private PlayerExceptionEnum playerExceptionEnum;

    public PlayerExceptionEnum getPlayerExceptionEnum() {
        return playerExceptionEnum;
    }

    public void setPlayerExceptionEnum(PlayerExceptionEnum playerExceptionEnum) {
        this.playerExceptionEnum = playerExceptionEnum;
    }
}
